package org.xiaojl.modules.drp.entity;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import org.xiaojl.utils.ToolUtil;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableName;
import org.xiaojl.common.base.BaseEntity;

/**
 * <p>
 * 供货商
 * </p>
 *
 * @author xiaojl
 * @since 2017-09-06
 */
@TableName("drp_supplier")
public class DrpSupplier extends BaseEntity<DrpSupplier> {

    private static final long serialVersionUID = 1L;

    /**
     * 名称
     */
	private String name;
    /**
     * 联系人
     */
	private String contacter;
    /**
     * 手机
     */
	private String mobilePhone;
    /**
     * 电话
     */
	private String telephone;
    /**
     * 邮箱
     */
	private Long email;
    /**
     * 旺旺号
     */
	private String wangNumber;
    /**
     * 地址
     */
	private String address;
    /**
     * 合作开始时间
     */
	private Date startTime;
    /**
     * 合作结束时间
     */
	private Date endTime;
    /**
     * 备注
     */
	private String remark;

	@Override
	public Wrapper<DrpSupplier> bindingQueryWrapper() {
		Wrapper<DrpSupplier> wrapper = new EntityWrapper<DrpSupplier>();
		if(ToolUtil.isNotEmpty(this.name)){
			wrapper.like("name", this.name);
		}
		if(ToolUtil.isNotEmpty(this.contacter)){
			wrapper.like("contacter", this.contacter);
		}
		if(ToolUtil.isNotEmpty(this.mobilePhone)){
			wrapper.like("mobilePhone", this.mobilePhone);
		}
		if(ToolUtil.isNotEmpty(this.telephone)){
			wrapper.like("telephone", this.telephone);
		}
		if(ToolUtil.isNotEmpty(this.wangNumber)){
			wrapper.like("wangNumber", this.wangNumber);
		}
		if(ToolUtil.isNotEmpty(this.address)){
			wrapper.like("address", this.address);
		}
		if(ToolUtil.isNotEmpty(this.remark)){
			wrapper.like("remark", this.remark);
		}
		return wrapper;
	}


	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getContacter() {
		return contacter;
	}

	public void setContacter(String contacter) {
		this.contacter = contacter;
	}

	public String getMobilePhone() {
		return mobilePhone;
	}

	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public Long getEmail() {
		return email;
	}

	public void setEmail(Long email) {
		this.email = email;
	}

	public String getWangNumber() {
		return wangNumber;
	}

	public void setWangNumber(String wangNumber) {
		this.wangNumber = wangNumber;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}
